package api.cie.rss.common;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

@SuppressWarnings("serial")
public class RSS implements Serializable {
	private int id;
	private String title;
	private String url;
	private boolean isActive;
	private Collection<Category> categories;
	public boolean ischecked = false;
	

	public RSS() {
	}

	public RSS(int id, String title, String url, boolean isActive,
			Collection<Category> categories) {
		super();
		this.id = id;
		this.title = title;
		this.url = url;
		this.isActive = isActive;
		this.categories = categories;
	}

	public RSS(int id, String title, String url, boolean isActive) {
		super();
		this.id = id;
		this.title = title;
		this.url = url;
		this.isActive = isActive;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public Collection<Category> getCategories() {
		if(categories == null){
			categories = new ArrayList<Category>();
		}
		return categories;
	}

	public void setCategories(Collection<Category> categories) {
		this.categories = categories;
	}

}
